package com.wcfsy.wechat.wx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wcfsy.wechat.wx.entity.WechatUserInfo;
import com.wcfsy.wechat.wx.service.RegisteredService;
import com.wcfsy.wechat.wx.sys.dao.RegisteredDao;

@Service("registeredService")
public class RegisteredServiceImpl implements RegisteredService{

	@Resource
	private RegisteredDao RegisteredDao;
	
	@Override
	public WechatUserInfo getWechatUserInfo(WechatUserInfo wechatUserInfo){
		
		return RegisteredDao.getWechatUserInfo(wechatUserInfo);
	}

	@Override
	public void updateWechatUserInfo(WechatUserInfo wechatUserInfo) {
		
		RegisteredDao.updateWechatUserInfo(wechatUserInfo);
	}
	
	@Override
	public void saveWechatUserInfo(WechatUserInfo wechatUserInfo){
		RegisteredDao.saveWechatUserInfo(wechatUserInfo);
	}

	@Override
	public void saveOpinion(Map<String, Object> map) {
		RegisteredDao.saveOpinion(map);
	}

	@Override
	public List<Map<String, Object>> getOpinions(int start,int end) {
		return RegisteredDao.getOpinions(start,end);
	}

}
